﻿using Jugg.Mapping.Setting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Jugg.Services.Setting
{
    public interface ISettingService
    {
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        List<SettingMapping> getAllCache();

        /// <summary>
        /// 通过名称获取
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        SettingMapping getByName(string name);

        /// <summary>
        /// 保存设置数据
        /// </summary>
        /// <param name="name">名称</param>
        /// <param name="value">值</param>
        SettingResult saveSetting(string name, string value);

    }
}
